package com.api.shopapi.service;

import com.alibaba.fastjson.JSONArray;
import com.api.shopapi.entity.Elderly;
import com.api.shopapi.entity.ElderlyCheckinAssess;
import com.api.shopapi.entity.User;
import com.api.shopapi.entity.dto.ElderlyDTO;
import com.github.pagehelper.PageInfo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author maochuan
 */
@Service
public interface ElderlyCheckinAssessService {

    int insert(ElderlyCheckinAssess elderlyCheckinAssess, JSONArray assessItemArr);


    int insert2(ElderlyCheckinAssess elderlyCheckinAssess);

    int deleteByElderlyCheckinAssessCode(String elderlyCheckinAssessCode);

    int updateByElderlyCheckinAssessCode(ElderlyCheckinAssess elderlyCheckinAssess, JSONArray assessItemArr);

    ElderlyCheckinAssess getByElderlyCheckinAssessCode(String elderlyCheckinAssessCode);

    ElderlyCheckinAssess getByElderlyCode(String elderlyCode);

    PageInfo<ElderlyCheckinAssess> getPageList(int pageIndex, int pageSize, String institutionCode,String elderlyName);

    int insertAndItem(ElderlyCheckinAssess elderlyCheckinAssess, JSONArray assessArr,int isSleep);


    PageInfo<ElderlyCheckinAssess> pageByGovCode(int pageIndex, int pageSize, String governmentCode,String elderlyName);



    PageInfo<ElderlyCheckinAssess> pageByElderlyCode(int pageIndex, int pageSize, String eldelryCode);

    PageInfo<ElderlyCheckinAssess> pageByMedCode(int pageIndex, int pageSize, String medicinerCode);

    PageInfo<ElderlyCheckinAssess> pageByNurseCode(int pageIndex, int pageSize, String nurseCode);


}
